package top.wardyan.sqlchecker.util;

public class RegexExample {
    public static void main(String[] args) {
        String[] testStrings = {
            "250111_Wang",
            "250113s",
            "250113_FENG_ERROR",
            "20250113_rk"
        };

        for (String str : testStrings) {
            String result = str.replaceAll("^(\\d{6,8}_?)|(_[^_]*$)", "");
            System.out.println("Original: " + str + " -> Processed: " + result);
        }
    }
}
